/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.isd.global.modelo;

import java.io.Serializable;
import java.math.BigDecimal;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 *
 * @author ctrosch
 */
@Entity
@Table(name="GRTCOF")
public class Moneda implements Serializable{

    @Id
    @Column(name="GRTCOF_CODCOF", length=6)
    private String codcof;

    @Column(name="GRTCOF_DESCRP", length=6)
    private String descrp;

    @Column(name="GRTCOF_DEBAJA", length=6)
    private String debaja;

    @Transient
    private BigDecimal cotizacion;

    public String getCodcof() {
        return codcof;
    }

    public void setCodcof(String codcof) {
        this.codcof = codcof;
    }

    public String getDebaja() {
        return debaja;
    }

    public void setDebaja(String debaja) {
        this.debaja = debaja;
    }

    public String getDescrp() {
        return descrp;
    }

    public void setDescrp(String descrp) {
        this.descrp = descrp;
    }

    public BigDecimal getCotizacion() {
        return cotizacion;
    }

    public void setCotizacion(BigDecimal cotizacion) {
        this.cotizacion = cotizacion;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Moneda other = (Moneda) obj;
        if ((this.codcof == null) ? (other.codcof != null) : !this.codcof.equals(other.codcof)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 43 * hash + (this.codcof != null ? this.codcof.hashCode() : 0);
        return hash;
    }

    



}
